package hoang.android.app.model;

import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class Video {
	private Bitmap thumbnailVideo;
	private String titleVideo;
	private String durationVideo;
	private String numberViewsVideo;
	private boolean isChecked;
	
	private String urlThumbnail;
	private String idVideo;
	
	
	public Video() {
		super();
	}

	public Video(Bitmap thumbnailVideo, String titleVideo,
			String durationVideo, String numberViewsVideo,
			String urlThumbnail, String idVideo) {
		super();
		this.thumbnailVideo = thumbnailVideo;
		this.titleVideo = titleVideo;
		this.durationVideo = durationVideo;
		this.numberViewsVideo = numberViewsVideo;
		this.isChecked = isChecked;
		this.urlThumbnail = urlThumbnail;
		this.idVideo = idVideo;
		this.isChecked = false;
	}



	public String getUrlThumbnail() {
		return urlThumbnail;
	}



	public void setUrlThumbnail(String urlThumbnail) {
		this.urlThumbnail = urlThumbnail;
	}



	public String getIdVideo() {
		return idVideo;
	}



	public void setIdVideo(String idVideo) {
		this.idVideo = idVideo;
	}



	/*public Bitmap getThumbnailVideo() throws MalformedURLException, IOException {
		InputStream inputStream = (InputStream) new URL(urlThumbnail).getContent();
		return BitmapFactory.decodeStream(inputStream);
	}*/
	
	public Bitmap getThumbnailVideo() {
		return thumbnailVideo;
	}

	public void setThumbnailVideo(Bitmap thumbnailVideo) {
		this.thumbnailVideo = thumbnailVideo;
	}

	public String getTitleVideo() {
		return titleVideo;
	}

	public void setTitleVideo(String titleVideo) {
		this.titleVideo = titleVideo;
	}

	public String getDurationVideo() {
		return durationVideo;
	}

	public void setDurationVideo(String durationVideo) {
		this.durationVideo = durationVideo;
	}

	public String getNumberViewsVideo() {
		return numberViewsVideo;
	}

	public void setNumberViewsVideo(String numberViewsVideo) {
		this.numberViewsVideo = numberViewsVideo;
	}

	public boolean isChecked() {
		return isChecked;
	}

	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}
	
	
	
}
